-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log an error if update() call returns ERROR
#1969
Conversation
ERROR
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## humble #1969 +/- ##
==========================================
- Coverage 62.87% 62.84% -0.03%
==========================================
Files 109 109
Lines 12589 12590 +1
Branches 8549 8550 +1
==========================================
- Hits 7915 7912 -3
- Misses 858 861 +3
- Partials 3816 3817 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with the _ONCE
is it will print once for the first controller and will never print it again.
@christophfroehlich like you. I'm also not sure which is the best option for this. Logging every time might spam a bit, and with throttle might miss some logs. Once might not be a good one here. |
0430bd4
to
75aed5b
Compare
Ah you are right. I changed it to RCLCPP_ERROR. This will influence the update rate maybe, but this is not a operating mode which should be maintained right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is fair to spam in this case. People should not run with a dead controller :D
As we discussed in #1873: On humble we do not take any action if the update call of a controller returns ERROR. As we don't want to break the behavior on humble, I suggest adding at least a log output.
I'm just not sure if we should just print it once, throttled, or on every call.
Closes #1873